package com.fashopcliente.vo;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
import org.springframework.roo.addon.tostring.RooToString;
import javax.validation.constraints.NotNull;
import javax.persistence.ManyToOne;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.OneToMany;

@RooJavaBean
@RooToString
@RooJpaActiveRecord
public class Lugar {

    /**
     */
    @NotNull
    private Long idlugar;

    /**
     */
    @NotNull
    private String titulo;

    /**
     */
    @NotNull
    private String tipo;

    /**
     */
    @NotNull
    private String descripcion;

    /**
     */
    @ManyToOne
    private Local local_idlocal;

    /**
     */
    @OneToMany(cascade = CascadeType.ALL, mappedBy = "lugar_idlugar")
    private Set<Beacon> idbeacon = new HashSet<Beacon>();
}
